﻿using System;
using System.Collections.Generic;
using System.Text;

namespace Mortgage.DDL
{
    public class CustomerUI
    {
        public string Name { set; get; }
        public string Gender { set; get; }
        public string AccountNo { set; get; }
        public string IDcardNo { get; set; }
        public DateTime IDcardDate { get; set; }
        public string IDcardIssuer { get; set; }
        public string PhoneMobile { get; set; }
        public string PhoneFix { get; set; }
        public string Email { get; set; }
        public string AddressContact { get; set; }
        public string AddressResident { get; set; }

        public CustomerUI() { }

        public CustomerUI(string name, string gender, string accno, string idcardno, DateTime idcarddate, string issuer, string phonemobile, string phonefix, string email, string contact, string resident)
        {
            Name = name;
            Gender = gender;
            AccountNo = accno;
            IDcardDate = idcarddate;
            IDcardNo = idcardno;
            IDcardIssuer = issuer;
            PhoneMobile = phonemobile;
            PhoneFix = phonefix;
            Email = email;
            AddressContact = contact;
            AddressResident = resident;
        }

        public CustomerUI(AccountUI item)
        {
            Name = item.Name;
            Gender = item.Gender;
            AccountNo = item.AccountNo;
            IDcardDate = item.IDcardDate;
            IDcardNo = item.IDcardNo;
            IDcardIssuer = item.IDcardIssuer;
            PhoneMobile = item.PhoneMobile;
            PhoneFix = item.PhoneFix;
            Email = item.Email;
            AddressContact = item.AddressContact;
            AddressResident = item.AddressResident;
        }

    }
}
